package com.rentcars.service;

import com.github.pagehelper.PageInfo;
import com.rentcars.entity.Cars;

import java.util.List;
import java.util.Map;

/**
 * @author zezhao
 * 分享爱车
 */
public interface CarShareService {

  //新车入册

    boolean insert(Cars record);


    //查询车辆

    Cars selectByPrimaryKey(String carid);
    Cars selectByPrimaryKey2(String carid);

    PageInfo<Cars> selectAll(String carcode, String mobile, Integer pageNo, Integer pageSize);

    PageInfo<Cars> searchPutawayCars(String carcode, String mobile,Integer pageNo, Integer pageSize);

    // 修改信息

    boolean updateByPrimaryKey(Cars record);

    boolean updateByPrimaryKeySelective(Cars record);

    boolean insertSelective(Cars record);
}
